package com.xqboss.apps.dto.guild;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 公会创建或修改dto
 *
 * @author lujiahong
 * @date 2024-1-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("公会创建dto")
public class GuildCreateDto {

    @ApiModelProperty("公会名称")
    @NotBlank(message = "队伍名称不能为空")
    @Length(min = 1,max = 6,message = "队伍名称最多输入6个字")
    private String name;

    @ApiModelProperty("宣言")
    @NotBlank(message = "宣言不能为空")
    @Length(min = 1,max = 20,message = "宣言最多输入20个字")
    private String manifesto;

    @ApiModelProperty("是否需要审核（false_否 true_是）")
    @NotNull(message = "审核字段不能为空")
    private Boolean needVerify;
}